#ifndef EXCRECORDDISPLAYER_H
#define EXCRECORDDISPLAYER_H

#include <QThread>

#include <QSqlDatabase>
#include <QSqlQuery>
#include <QSqlQueryModel>
#include <QSqlError>
#include <QDateTime>
#include <QVector>
#include <QQuickWidget>

class ExcRecordDisplayer: public QThread
{
    Q_OBJECT
public:
    ExcRecordDisplayer();
    ExcRecordDisplayer(QQuickWidget *quickMainScreen);

public slots:
    void sl_selectDatabase();
    void sl_showLoadSettingUI(int recallWhich);
    void sl_fullScreen();
    void sl_settingFinishChart();
    void sl_settingFinishTable();

    void sl_selectCvs(QVector<QString> i_str);

//protected:
//    virtual void keyPressEvent(QKeyEvent *ev);

private:
    QSqlDatabase m_fdb;
    QQuickWidget *m_quickMainScreen;
    QQuickWidget *m_quickWidgetSetting;

    struct _fdbReadBuf_ {
        QDateTime datetime;
        int channel;
        QVector<int>vec;
    };
    QVector<struct _fdbReadBuf_> m_fdbReadBuf;

};

#endif // EXCRECORDDISPLAYER_H
